﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/JBrute;component/Vista.xaml"/>
    </ResourceDictionary.MergedDictionaries>


    <SolidColorBrush Color="#dee3ea" x:Key="LightGrey"/>
    <SolidColorBrush Color="#79808d" x:Key="MediumGrey"/>
    <SolidColorBrush Color="#393839" x:Key="DarkGrey"/>
    <SolidColorBrush Color="#141414" x:Key="AlmostBlack"/>
    <SolidColorBrush Color="#2c2f35" x:Key="DarkBlueGrey"/>
    <SolidColorBrush Color="#575f75" x:Key="BlueGrey"/>
    <SolidColorBrush Color="#4d525a" x:Key="NeutralMedGrey"/>


    <LinearGradientBrush x:Key="MenuBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#000000" Offset="0"/>
        <!-- Black -->
        <GradientStop Color="#141414" Offset="0.4"/>
        <!-- AlmostBlack -->
        <GradientStop Color="#2c2f35" Offset="0.4"/>
        <!-- DarkBlueGrey -->
        <GradientStop Color="#79808d" Offset="1"/>
        <!-- MediumGrey -->
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="StatusBarBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#000000" Offset="-0.5"/>
        <!-- Black -->
        <GradientStop Color="#575f75" Offset="0.25"/>
        <!-- BlueGrey -->
        <GradientStop Color="#000000" Offset="1"/>
        <!-- Black -->
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="ToolBarBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="Gray" Offset="0"/>
        <!-- MediumGrey -->
        <GradientStop Color="#575f75"  Offset="0.5"/>
        <!-- NeutralMedGrey -->
        <GradientStop Color="Gray"  Offset="1.0"/>
        <!-- BlueGrey -->
    </LinearGradientBrush>

    <!-- this is very close to the status bar brush -->
    <LinearGradientBrush x:Key="DialogBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#79808d" Offset="0.0"/>
        <!-- MediumGrey -->
        <GradientStop Color="#575f75" Offset="0.5"/>
        <!-- BlueGrey -->
        <GradientStop Color="#000000" Offset="1"/>
        <!-- Black -->
    </LinearGradientBrush>


    <Style TargetType="Button">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Width" Value="75"/>
        <!-- might vary depending on context -->
        <Setter Property="Height" Value="25"/>
    </Style>

    <Style x:Key="{x:Type CheckBox}" TargetType="{x:Type CheckBox}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Foreground" Value="#FFFFFF" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <BulletDecorator Background="Transparent">
                        <BulletDecorator.Bullet>
                            <Border x:Name="Border" 
       Width="13" 
       Height="13" 
       CornerRadius="0" 
       Background="#C0C0C0"
       BorderThickness="1"
       BorderBrush="#404040">
                                <Path 
        Width="7" Height="7" 
        x:Name="CheckMark"
        SnapsToDevicePixels="False" 
        Stroke="#404040"
        StrokeThickness="2"
        Data="M 0 2 L 2 7 L 7 0" />
                            </Border>
                        </BulletDecorator.Bullet>
                        <ContentPresenter Margin="4,0,0,0"
      VerticalAlignment="Center"
      HorizontalAlignment="Left"
      RecognizesAccessKey="True"/>
                    </BulletDecorator>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="false">
                            <Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="{x:Null}">
                            <Setter TargetName="CheckMark" Property="Data" Value="M 0 7 L 7 0" />
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="#EEEEEE" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="#E0E0E0" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="#606060" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter TargetName="Border" Property="Background" Value="#808080" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="#AAAAAA" />
                            <Setter Property="Foreground" Value="#888888"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Menu">
        <Setter Property="Background" Value="{StaticResource MenuBrush}"/>
    </Style>

    <Style TargetType="GroupBox">
        <Setter Property="Foreground" Value="#FFFFFF"/>
    </Style>


    <Style TargetType="ToolBarPanel">
        <Setter Property="Background" Value="{StaticResource ToolBarBrush}"/>
    </Style>
    <Style TargetType="GridSplitter">
        <Setter Property="Background" Value="{StaticResource ToolBarBrush}"/>
    </Style>
    <Style TargetType="ToolBarOverflowPanel">
        <Setter Property="Background" Value="{StaticResource ToolBarBrush}"/>
    </Style>

    <Style x:Key="TitleMenuItemStyle" TargetType="MenuItem">
        <Setter Property="Foreground" Value="White"/>
    </Style>
    <Style x:Key="MenuItemStyle" TargetType="MenuItem">
        <Setter Property="Foreground" Value="Black"/>
    </Style>
</ResourceDictionary>
